package com.yanqu.road.entity.activity.tanghulu;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_tanghulu")
public class TangHuLuUserData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    int activityId;

    @FieldTypeAnnotation(select = true, update = true, desc = "玩家id")
    long userId;

    @FieldTypeAnnotation(desc = "当前转盘数据")
    TangHuLuMakeData curGame;                     //当前局（结束后入库）

    @FieldTypeAnnotation(desc = "总积分")
    long totalScore;

    @FieldTypeAnnotation(desc = "甜蜜值")
    long sweetVal;

    @FieldTypeAnnotation(desc = "糖葫芦桩")
    int tangHuLuNum;

    @FieldTypeAnnotation(desc = "当前转盘数据--高级场")
    TangHuLuMakeData seniorMakeData;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public TangHuLuMakeData getCurGame() {
        return curGame;
    }

    public void setCurGame(TangHuLuMakeData curGame) {
        if(this.curGame != curGame) {
            this.curGame = curGame;
            setUpdateOption();
        }
    }

    public long getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(long totalScore) {
        if(this.totalScore != totalScore) {
            this.totalScore = totalScore;
            setUpdateOption();
        }
    }

    public long getSweetVal() {
        return sweetVal;
    }

    public void setSweetVal(long sweetVal) {
        if(this.sweetVal != sweetVal) {
            this.sweetVal = sweetVal;
            setUpdateOption();
        }
    }

    public int getTangHuLuNum() {
        return tangHuLuNum;
    }

    public void setTangHuLuNum(int tangHuLuNum) {
        if(this.tangHuLuNum != tangHuLuNum) {
            this.tangHuLuNum = tangHuLuNum;
            setUpdateOption();
        }
    }

    public TangHuLuMakeData getSeniorMakeData() {
        return seniorMakeData;
    }

    public void setSeniorMakeData(TangHuLuMakeData seniorMakeData) {
        if(this.seniorMakeData != seniorMakeData) {
            this.seniorMakeData = seniorMakeData;
            setUpdateOption();
        }
    }
}
